﻿using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using ProtoXaml;

namespace ProtoXAMLDemoApp
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>

    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();

            Skinning skinning = new Skinning();            
                      
            skinning.AddSkinsToMenu(this, SkinsMenuItem);
            skinning.RegisterKey(this, "Default", Key.F1, ModifierKeys.Shift | ModifierKeys.Control);
            skinning.RegisterKey(this, "Napkin", Key.F2, ModifierKeys.Shift | ModifierKeys.Control);

            skinning.SelectedSkinName = "Napkin";
        }

        private void RegisterButtonClicked(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("Thank You for registering!", "Thank You", MessageBoxButton.OK, MessageBoxImage.Information);
            Window2 wnd = new Window2();
            wnd.Owner = this;            
            wnd.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            wnd.ShowDialog();
        }       
    }
}
